package com.chen.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class EncodingController {
    @RequestMapping("/get/name")
    public String getName(String name, Model model){
//        可能会出现乱码，需要加入过滤器
        System.out.println(name);
        model.addAttribute("msg",name);
        return "test";
    }
}
